package com.example.lanouhn.bantangapp.activities.fragments;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

import com.example.lanouhn.bantangapp.R;
import com.example.lanouhn.bantangapp.activities.activities.Msg_Notifination_Activity;
import com.jcodecraeer.xrecyclerview.XRecyclerView;

/**
 * Created by lanouhn on 16/7/23.
 */
public class Fragment_Msg_Notifination extends Fragment {

    private RelativeLayout relativeLayout;//点击
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        View view = inflater.inflate(R.layout.msg_notifination_item,container,false);
        relativeLayout = (RelativeLayout) view.findViewById(R.id.relativeLayout);
        return view;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        initLinstener();
    }

    private void initLinstener() {
        relativeLayout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent it  = new Intent(getActivity(), Msg_Notifination_Activity.class);
                startActivity(it);
            }
        });
    }
}
